package com.lmk;

public class Computer {
   private String cpu;
   private String memory;
   private String hd;

    public String getCpu() {
        return cpu;
    }

    public void setCpu(String cpu) {
        this.cpu = cpu;
    }

    public String getMemory() {
        return memory;
    }

    public void setMemory(String memory) {
        //添加数据校验
        this.memory = memory;
    }

    public String getHd() {
        return hd;
    }

    public void setHd(String hd) {
        this.hd = hd;
    }
//getter&&setter  访问器

    public  void bootstrap(){
        System.out.println("开机");
    }
    public void  shutdown(){
        System.out.println("关机");
    }
}
